import Vue from "vue";
import VueRouter from "vue-router";
import Layout from '@/layout';

Vue.use(VueRouter);

const PATH_ROOT = '/App';

// 主页面路由
const PHOTO_ROUTER = [
    //图片管理
    {
        path: "/PhotoMgmt",
        component: Layout,
        meta: { title: '图片管理', hidden: false, icon: { name: 'photo', type: 'png'}, redirect: 'noRedirect' },
        redirect: PATH_ROOT + '/PhotoMgmt/PhotoCenter',
        children: [
            //图片中心
            {
                path: PATH_ROOT + '/PhotoMgmt/PhotoCenter',
                meta: { title: '图片中心', hidden: false, icon: { name: 'el-icon-picture', type: 'elementUI' } },
                component: () => import('@/views/App/PhotoMgmt/photoCenter.vue'),
            }
        ]
    },

];

export default PHOTO_ROUTER;
